import { defineStore } from "pinia"
import {ref} from "vue"
import type {
   MessageStatisticsItem,
   SearchItem,
   FunctionButtonItem,
   MessageGroupItem,
   MessageEntryItem,
}from "../types/message"
export const useMessageStore = defineStore('message',()=>{
  const MessageStatisticsItemStore = ref<MessageStatisticsItem[]>([
    {
        title:"消息统计",
        icon:"message",
    }
  ]) 
  const SearchItemStore = ref<SearchItem[]>([
    {
        title:"搜索",
        icon:"search",
    }
  ])
  const FunctionButtonItemStore = ref<FunctionButtonItem[]>([
    {
        title:"功能按钮",
        icon:"function",
    }
  ])
  const MessageGroupItemStore = ref<MessageGroupItem[]>([
   {
    title:"消息分组",
    icon:"messageGroup",
   } 
  ])
  const MessageEntryItemStore = ref<MessageEntryItem[]>([
    {
        title:"消息入口",
        icon:"messageEntry",
    }
  ])
  return {
    MessageStatisticsItemStore,
    SearchItemStore,
    FunctionButtonItemStore,
    MessageGroupItemStore,
    MessageEntryItemStore,
  }
})